package User;

import operation.*;

import java.util.Scanner;

public class AdmiUser extends User {
    Scanner scanner=new Scanner(System.in);
    public AdmiUser (){
        this.inoperation=new Inoperation[]{
                new extioperation(),
                new Addoperation(),
                new Findoperation(),
                new Dedoperation(),
                new upoperation(),
                new listoperaion()
        };
    }
    public int menu() {
        System.out.println("===========房屋出租系统菜单========");
        System.out.println("   1.新增房源");
        System.out.println("   2.查找房屋");
        System.out.println("   3.删除房屋信息");
        System.out.println("   4.修改房屋信息");
        System.out.println("   5.房屋列表");
        System.out.println("   0.退出系统");
        System.out.println("请选择：");
        int key=scanner.nextInt();
        scanner.nextLine();
        return key;
    }
}

